package org.example.services;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.example.domain.PageBean;
import org.example.domain.Question;
import org.example.domain.response.ResponseResult;

public interface QuestionService {

    public Question saveQuestion(Question question);

    boolean deleteQuestion(int id);

    boolean updateQuestion(Question question);

    Question getQuestionByQuestionId(int questionId);

    PageBean<Question> getQuestionByPage(int pageSize, int currentPage);

    PageBean<Question> getQuestionByPageAndCondition(int pageSize, int currentPage, QueryWrapper wrapper);

    PageBean<Question> getQuestionByPageAndType(String type, int pageSize, int currentPage);

    PageBean<Question> getQuestionByPageAndTitle(String title, int pageSize, int currentPage);
}
